﻿using System;
using System.Collections.Generic;
using System.Text;

using SugarWebApi.Commands;

namespace SugarWebApi
{
	public class GetEntryListResult : SugarWebResult
	{

		#region Constructors

		internal GetEntryListResult(
			GetEntryListCommand command,
			bool success,
			string[] fields,
			SugarEntry[] entries)
			: base(command, success)
		{
			this._fields = fields;
			this._entries = entries;
		}

		#endregion

		#region Fields

		private string[] _fields;
		private SugarEntry[] _entries;

		#endregion

		#region Properties

		public new GetEntryListCommand Command
		{
			get { return base.Command as GetEntryListCommand; }
		}

		public SugarEntry[] Entries
		{
			get { return _entries; }
			// set { _entries = value; }
		}

		public string[] Fields
		{
			get { return _fields; }
			// set { _fields = value; }
		}

		public string SessionId
		{
			get { return this.Command.SessionId; }
			// protected set
		}

		public string Module
		{
			get { return this.Command.Module; }
			// protected set
		}

		#endregion

	}
}
